import React from 'react'
import { Provider } from 'react-redux'
import ReactDOM from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import App from './App'
import './index.css'
import store from './store/index'
import 'amfe-flexible/index.js'
import { detectBrowserEngine } from '@/utils'
import IETips from './components/IETips'
if (detectBrowserEngine() === 'ie') {
  ReactDOM.createRoot(document.getElementById('root')!).render(<IETips />)
} else {
  ReactDOM.createRoot(document.getElementById('root')!).render(
    <React.StrictMode>
      <Provider store={store}>
        <BrowserRouter>
          <App />
        </BrowserRouter>
      </Provider>
    </React.StrictMode>,
  )
}
